home *** CD-ROM | disk | FTP | other *** search
- # Dans program 4.2
- # test a scrolled list
- xtAppInitialize -class Program
-
- xmMainWindow .main managed
-
- # creating a scrolled list makes two new widgets - the scrolled window
- # and the list. The sw is used for geometry, the list - as a list
- xmScrolledList .main.list managed
-
- # note the list is used here
- .main.list setValues -itemCount 8 \
- -items "red, green, blue, orange, maroon, grey, black, white"
- .main.list setValues -visibleItemCount 5
-
- # note the sw is used here, not the list
- .main setValues -workWindow [.main.list parent]
-
- . realizeWidget
-
- . mainLoop
-